package com.zhouyibike.uu.ui.activity.mywallet;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

import com.zhouyibike.uu.R;
import com.zhouyibike.uu.ui.base.BaseActivity;

public class TixianSuccessActivity extends BaseActivity implements View.OnClickListener{

    private ImageButton mBtnBack;
    private TextView mBtnTitle;

    private TextView tv_money;
    private Button btn_sure,btn_detail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tixian_success);
        initView();
    }
    private void initView(){
        mBtnBack = (ImageButton) findViewById(R.id.bar_btn_back);
        mBtnTitle = (TextView) findViewById(R.id.bar_text_title);
        mBtnTitle.setText("提现成功");
        mBtnBack.setOnClickListener(this);

        tv_money= (TextView) findViewById(R.id.tv_txsuccess_money);
        tv_money.setText(getIntent().getStringExtra("txmoney"));
        btn_sure= (Button) findViewById(R.id.btn_txsuccess_ljyc);
        btn_sure.setOnClickListener(this);
        btn_detail= (Button) findViewById(R.id.btn_txsuccess_detail);
        btn_detail.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.bar_btn_back:
            case R.id.btn_txsuccess_ljyc:
                finish();
                break;
            case R.id.btn_txsuccess_detail:
                Intent intent=new Intent(TixianSuccessActivity.this,MyDetailActivity.class);
                intent.putExtra("type","13");
                startActivity(intent);
                break;
        }
    }
}
